package entity;

import java.io.Serializable;

/**
 * Created with IDEA
 * author:zhiXiang-Chen
 * Date:2019/2/26
 * Time:14:50
 */

public class Result implements Serializable {
    private boolean flage;
    private Integer code;
    private String messages;
    private Object data;

    public Result() {
    }

    public Integer getCode() {
        return code;
    }

    public Result(boolean flage, Integer code, String messages, Object data) {
        this.flage = flage;
        this.code = code;
        this.messages = messages;
        this.data = data;
    }
    public Result( Integer code, boolean flage,String messages, Object data) {
        this.flage = flage;
        this.code = code;
        this.messages = messages;
        this.data = data;
    }

    public Result(boolean flage, Integer code, String messages) {
        this.flage = flage;
        this.code = code;
        this.messages = messages;
    }
    public Result(Integer code, boolean flage, String messages) {
        this.flage = flage;
        this.code = code;
        this.messages = messages;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public boolean isFlage() {
        return flage;
    }

    public void setFlage(boolean flage) {
        this.flage = flage;
    }

    public String getMessages() {
        return messages;
    }

    public void setMessages(String messages) {
        this.messages = messages;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
